SUBDIRS = src

DEBUGSUBDIRS = $(addsuffix .debug, $(SUBDIRS))
RELEASESUBDIRS = $(addsuffix .release, $(SUBDIRS))
CLEANSUBDIRS = $(addsuffix .clean, $(SUBDIRS))
INSTALLSUBDIRS = $(addsuffix .install, $(SUBDIRS))

.PHONY: $(SUBDIRS) $(DEBUGSUBDIRS) $(RELEASESUBDIRS) $(INSTALLSUBDIRS) \
	$(CLEANSUBDIRS)

all:	$(SUBDIRS)

$(SUBDIRS):
	@$(MAKE) -C $@


$(DEBUGSUBDIRS):
	@cd $(basename $@) ; $(MAKE) debug
debug:	$(DEBUGSUBDIRS)

$(RELEASESUBDIRS):
	@cd $(basename $@) ; $(MAKE) release
release:	$(RELEASESUBDIRS)

$(INSTALLSUBDIRS):
	@cd $(basename $@) ; $(MAKE) install
install: $(INSTALLSUBDIRS)

depend:
	
$(CLEANSUBDIRS):
	@cd $(basename $@) ; $(MAKE) clean
clean:	$(CLEANSUBDIRS)
	@rm -rf test
